#ifndef CPU_H
#define CPU_H

#include <string>
#include <stack>

class CCpu {
public:
    double calculate(const std::string& expression);

private:
    void evaluateTop(std::stack<double>& values, std::stack<char>& ops);
    bool isOperator(char ch);
    int precedence(char op);
};

#endif
